<h2><%= @record.name %></h2>

<% form_for(@record) do |f| %>
  <%= f.error_messages %>

<%= render :partial => "record_input", :locals => {:f => f} %>

<% end %>
<%= link_to 'Edit', edit_record_path(@record) %> |
<%= link_to 'Back', records_path %>